package cn.net.gemai.springboot_eureka_client_provider_ribbon;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 开启Eureka客户端功能，注册服务
 */
@EnableDiscoveryClient
/**
 * 如果加入了数据库相关依赖，不配置数据库连接信息的话
 * 需要添加@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
 */
@SpringBootApplication
public class SpringbootEurekaClientProviderRibbonApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootEurekaClientProviderRibbonApplication.class, args);
    }

}
